Design for efficiency/modularity

Macros

What

  • Code in an object whose contents are copied where invoked
  • Think Stata macros

Where use

Things that repeat

  • Don’t repeat yourself (DRY)
  • Widely used validations
  • Frequently used enablements

Variables

What

  • Can be used to capture constants
  • Years
  • Recall periods

Where use

Things that change

  • Recall periods
  • Years

Lookup tables